// ObstacleHandler.java
package com.smartfarm.chain;

public class ObstacleHandler extends SafetyHandler {
    public void handleRequest(String request) {
        if (request.contains("障碍物")) {
            System.out.println("障碍处理: 启动紧急避障程序");
        } else if (next != null) {
            next.handleRequest(request);
        }
    }
}